<div id="banner"><img src="<?php echo $this->baseUrl; ?>/banner/cars.png" style="width: 100%;" />
    <div class="title"><?php echo $this->title; ?></div>
</div>

<div id="content2">


    <table class="content">
        <tr>
            <td style="text-align: center;">               
                <h1>Select a day
                    <br /> 
                    <form action="<?php echo $this->baseUrl; ?>/Showtimes/" method="POST">
	                    <select name="date">
	                        <?php foreach ($this->days as $day) { ?>
	                            <option <?php if($day['Date'] == $this->date) echo "selected"; ?>>
	                            	<?php echo $day['Date']; ?>
	                            </option>
	                        <?php } ?>
	                    </select>      
                    <input type="submit" />
                    </form>
                </h1>

            </td>
        </tr>
    </table>
    
    <?php $i = 0; foreach ($this->shows as $show) { ?>
    <table class="content">
        <tr>
        	<?php if($i%2 == 0) { ?>
        	<td>
                <h1><?php echo $show['Title']; ?></h1>
                <b>Hour: </b> <?php echo date("g\:i a", strtotime($show['Date'])); ?>
                <br /><b>Room: </b> <?php echo $show['Room_ID']; ?>
                <br /><a href="<?php echo $this->baseUrl; ?>/Movie/movie/id/<?php echo $show['Movie_ID']; ?>">More Info</a>      
            </td>
            <td style="width: 200px; vertical-align: middle;">
				<img src="<?php echo $this->baseUrl; ?>/posters/<?php echo $show['Poster']; ?>" style="max-height: 300px; max-width: 200px;"/>
            </td>
        	
        	<?php } else { ?>
        	
        	<td style="width: 200px; vertical-align: middle;">
				<img src="<?php echo $this->baseUrl; ?>/posters/<?php echo $show['Poster']; ?>" style="max-height: 300px; max-width: 200px;"/>
            </td>
            <td>
       		    <h1><?php echo $show['Title']; ?></h1>
                <b>Hour: </b> <?php echo date("g\:i a", strtotime($show['Date'])); ?>
                <br /><b>Room: </b> <?php echo $show['Room_ID']; ?>
                <br /><a href="<?php echo $this->baseUrl; ?>/Movie/movie/id/<?php echo $show['Movie_ID']; ?>">More Info</a>      
           </td>   
            	
        	<?php } ?>
        </tr>
    </table>
    <?php $i++; } ?>
</div>
